
package com.njrsrc.android.app;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.njrsrc.R;
import com.njrsrc.android.views.TitleBar;
import com.njrsrc.common.utils.Helpers;

public class AboutActivity extends BaseActivity implements OnClickListener {
    private TitleBar mBar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        initView();
    }

    private void initView() {
        mBar = (TitleBar) findViewById(R.id.activity_title_bar);
        mBar.setTitleText("关于");
        mBar.back.setOnClickListener(this);
        ((TextView) findViewById(R.id.version)).setText(Helpers.getVersionName(AboutActivity.this));
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.tb_ibtn_back:
                finish();
                break;
            default:
                break;
        }
    }
}
